pkgname=dmenu-intothegnu-git
pkgver=1.0.r0.gb6bc646
pkgrel=2
license=(MIT)
arch=('i686' 'x86_64')
groups=('intothegnu-config')
provides=(dmenu)
conflicts=(dmenu)
depends=(sh  glibc  coreutils  libx11  libxinerama  libxft  freetype2  fontconfig  libfontconfig.so)
makedepends=(git make)
source=(git+https://notabug.org/BezierQuadratic/Dmenu.git)
sha256sums=('SKIP')

pkgver(){
	cd Dmenu
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

build(){
	cd $srcdir/Dmenu
	make
}

package(){
	cd $srcdir/Dmenu
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/share/man/man1
	install -m 755 dmenu $pkgdir/usr/bin/
	install -m 755 dmenu_run $pkgdir/usr/bin/
	install -m 755 dmenu_path $pkgdir/usr/bin/
	install -m 755 stest $pkgdir/usr/bin/
	cat dmenu.1 | gzip -c >  $pkgdir/usr/share/man/man1/dmenu.1.gz
	cat stest.1 | gzip -c >  $pkgdir/usr/share/man/man1/stest.1.gz
}
